﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xms.CRM.Domain
{
    /// <summary>
    /// 界面初始化返回的数据实体
    /// </summary>
    public class LIMInitDoEntity
    {
        public int code { get; set; } = 0; //0表示成功，其它表示失败
        public string msg { get; set; }//失败信息
        public LIMInitData data { get; set; } = new LIMInitData();
    }

    public class LIMInitData
    {
        /// <summary>
        /// 我的信息
        /// </summary>
        public LIMMemberInfo mine { get; set; }
        /// <summary>
        /// 好友列表
        /// </summary>
        public List<LIMFriendInfo> friend { get; set; } = new List<LIMFriendInfo>();
        /// <summary>
        /// 群组列表
        /// </summary>
        public List<LIMGroupInfo> group { get; set; } = new List<LIMGroupInfo>();
    }
    public class LIMFriendInfo
    {
        public int id { get; set; }//分组ID
        public string groupname { get; set; }//好友分组名

        public List<LIMMemberInfo> list { get; set; } = new List<LIMMemberInfo>();//好友列表

    }
    public class LIMGroupInfo
    {
        public int id { get; set; }//群组ID
        public string groupname { get; set; }//群组名

        public string avatar { get; set; }//群组头像
    }
    public class LIMMemberInfo
    {
        public int id { get; set; } //好友ID

        public string username { get; set; }//好友昵称

        public string avatar { get; set; }//好友头像

        public string sign { get; set; }//好友签名

        public string status { get; set; }//若值为offline代表离线，online或者不填为在线
    }
}
